const router = require('koa-router')()
const koa=require('koa')

const translate =require('../service/fanyi')

router.get('/fanyi', async (ctx, next) => {
    const re = await translate ('你好');
    ctx.body = re;
})
module.exports = router